package top.dingyingying.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tb_cpu")
public class TbCpu implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
//数据主键 primary key auto_increment
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String cpu;
    private String manufacturer;
    private String info;
    private Integer cores;
    private Integer threads;
    private String frequency;
    private String  maxFrequency;
//    如果有默认值，不想填写就就用下面的注解标注
//    insertStrategy是添加表格是updateStrategy是修改策略
//    NEVER表示不要更新也不插入
    @TableField(insertStrategy = FieldStrategy.NEVER,updateStrategy = FieldStrategy.NEVER)
    private Date  releaseDate;

}
